
var args = process.argv.splice(2);
if (!args || args.length < 2){
	console.log("USAGE: node admin.js  [appKey] [appSecret]");
	return;
}

var security = require('../providers/security');

var appKey = security.md5(args[0]);
var appSecret = security.md5(args[1]);



var appInfo = {
	'appKey': appKey.substr(0,12),
	'appSecret': appSecret.substr(0,36)
};
console.log(appInfo);


appSecret += security.md5(appSecret);
console.log(appSecret.length);
console.log(appSecret.substr(0,43));